package lng.site.tatoo.model;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the user database table.
 * 
 */
@Entity
@Table(name="User")
public class User implements Serializable {
	private static final long serialVersionUID = 1L;

	private int id;

	private String name;

	private String surname;
	@Id
	@Column(name="ID",unique=true,nullable=false)
	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}
	@Column(name="NAME",unique=true,nullable=false)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	
	public String getSurname() {
		return this.surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}
	@Override
	public String toString(){
		StringBuffer strBuff = new StringBuffer();
		strBuff.append("id: ").append(getId());
		strBuff.append(",name: ").append(getName());
		strBuff.append(",Surname: ").append(getSurname());
		return strBuff.toString();
	}

}